﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CjaxExam.Models.Interfaces;
using CjaxExam.Models.Entities;
using CjaxExam.Models.DataBase;
namespace CjaxExam.Models.Entities
{
    public class DictionaryInfo
    {
        public List<dictionary> getDepart()
        {
            ForExamDataContext DC = new ForExamDataContext();
            var department = from p in DC.dictionary
                             where p.type == "部门"
                             select p;
           
            return department.ToList();
        }
        public List<dictionary> getSepcial()
        {
            ForExamDataContext DC = new ForExamDataContext();
            var sepcial = from p in DC.dictionary
                             where p.type == "专业"
                             select p;

            return sepcial.ToList();
        }
    }
   
}